package cn.hh.pet.service;


import cn.hh.basic.service.IBasicService;
import cn.hh.basic.util.PageList;
import cn.hh.pet.domain.Pet;
import cn.hh.pet.domain.PetDetail;
import cn.hh.pet.query.PetQuery;

public interface IPetService extends IBasicService<Pet> {
    /*新增或者编辑*/
    void addOrUpdate(Pet pet);

    /*通过id查找*/
    PetDetail loadDetailById(Long id);

    /*批量上架*/
    void onsaleByIds(Long[] ids);

    /*批量下架*/
    void offsaleByIds(Long[] ids);
    /*查询上架商品*/
    PageList<Pet> listqueryPage(PetQuery query);

}
